package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWebsiteConfigMapper;
import com.ruoyi.system.domain.SysWebsiteConfig;
import com.ruoyi.system.service.ISysWebsiteConfigService;

@Service
public class SysWebsiteConfigServiceImpl implements ISysWebsiteConfigService {
    @Autowired
    private SysWebsiteConfigMapper websiteConfigMapper;

    @Override
    public SysWebsiteConfig selectConfigById(Long configId) {
        return websiteConfigMapper.selectConfigById(configId);
    }

    @Override
    public SysWebsiteConfig selectConfigByKey(String configKey) {
        return websiteConfigMapper.selectConfigByKey(configKey);
    }

    @Override
    public List<SysWebsiteConfig> selectConfigList(SysWebsiteConfig config) {
        return websiteConfigMapper.selectConfigList(config);
    }

    @Override
    public int insertConfig(SysWebsiteConfig config) {
        return websiteConfigMapper.insertConfig(config);
    }

    @Override
    public int updateConfig(SysWebsiteConfig config) {
        return websiteConfigMapper.updateConfig(config);
    }

    @Override
    public int deleteConfigByIds(Long[] configIds) {
        return websiteConfigMapper.deleteConfigByIds(configIds);
    }

    @Override
    public int deleteConfigById(Long configId) {
        return websiteConfigMapper.deleteConfigById(configId);
    }
}